import { IFeidaoAiBrowserComponent } from '@feidao/web/interfaces';
import Alert from '@feidao/widgets/fd-wh000013';

export default async function a001(fd: IFeidaoAiBrowserComponent, ...args: any[]) {
	const target = args[0].currentTarget as HTMLImageElement;
	const src = target.src;
	const img_node = fd.data.node.querySelector<HTMLImageElement>('[data-feidao-id="show-img"]');
	img_node.src = src;
	const s = fd.data.node.querySelector<Alert>('#widget');
	s.show();
}
